package com.enzoism.thread.common;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        log.info("--------------------thread running");
    }

    public MyRunnable() {
    }

    // 添加一个辅助构造函数
    public MyRunnable(int threadNum) throws Exception {
        Thread.sleep(100);
        log.info("{}", threadNum);
        Thread.sleep(100);
    }

}
